<template>
  <div>
<!-- 法一： -->
<!-- <input :value="modelValue" @input="ipt"/> -->
<!-- 法二： -->
<input :value="value" @input="ipt"/>
  </div>
</template>

<script>
export default {
  name: '',
  components: {},
  props:['value'],
  data() {
    return {

    }
  },
  created() {},
  mounted() {},
  methods: {
ipt(e){
    // this.$emit('update:modelValue',e.target.value)
    this.$emit('update:value',e.target.value)
    console.log(e.target.value);
}
  }
}
</script>

  <style lang="scss" scoped>

  </style>